<?php slot('coursesNav', 'active') ?>

<div id="wrapper">
	<?php include_partial('global/systemMessages', array('form' => $form)) ?>
	<div id="content">
		
		<div id="main">
			<div class="main-heading">
				<h1>Write a Summary</h1>
			</div>
			<form method="post" action="<?php echo url_for('summaries/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" class="notes-writer">
				
				<!--
				<div>
					<label>Choose a Book:</label></br>
						<?php echo $form['type_id']->render()?>
				</div>
				-->
				<h4>
					<span>Summary Titles</span>
				</h4>
				<fieldset>
				<div style="margin-top: 20px;">
					<label>Title:</label></br>
						<?php echo $form['title']->render()?>
				</div>
				
				<div style="margin-top: 20px;">
					<label>Sub Title:</label></br>
						<?php echo $form['sub_title']->render()?>
				</div>
				</fieldset>
				
				<h4>
					<span>Summary Associations</span>
				</h4>
				<fieldset>
				
					<div style="margin-top: 20px;">
						<label>Author:</label></br>
							<?php echo $form['author']->render()?>
					</div>
					
					<div style="margin-top: 20px;">
					<label>Course:</label></br>
						<?php echo $form['course_id']->render()?>
					</div>
							
					<div style="margin-top: 20px;">
					<label>Category:</label></br>
						<?php echo $form['category']->render()?>
					</div>
									
				</fieldset>
				
				<h4>
					<span>Summary Body</span>
				</h4>
				<fieldset>
				
					<div style="margin: 20px 0px 20px 0px;">
					<?php 
						$oFCKeditor->Create(); 
						// include whiteboard
						$oWhiteboard = FCKDrawUtil::getFCKDrawWhiteBoard($oFCKeditor,'summary[board]');
						$oWhiteboard->Create();
					?>
					</div>
				
					<?php echo $form->renderHiddenFields() ?>					
				</fieldset>
				
				<fieldset class="form-submit">
				
					<ul class="options">
						<li>
							<input type="submit" value="Save Summary"/>
						</li>
						<li>
						<?php if($group_id):?>
							<a href="<?php echo url_for('groups/show?id='.$group_id)?>">Cancel</a>
						<?php else:?>
							<a href="<?php echo url_for('groups/index')?>">Cancel</a>
						<?php endif?>
						</li>
					</ul>
				
				</fieldset>
				
			</form>
		</div>
		<div id="sidebar">
			
		</div>
	</div>

</div>

<script type="text/javascript">

</script>
